package cn.aicnn.chatssespringboot.persistence;

import cn.aicnn.chatssespringboot.dto.Chat;
import cn.aicnn.chatssespringboot.dto.Dialog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface dialogMapper extends BaseMapper<Dialog> {
    @Select("SELECT * FROM DIALOG WHERE CHATID = #{chatid}")
    List<Dialog> getDialog(@Param("chatid") Integer chatid);
}
